import { Notify } from 'quasar'

const state = {}
const getters = {}
const mutations = {
  NOTIFY_SUCCESS (state, payload) {
    Notify.create({
      message: '请求成功',
      color: 'positive',
      icon: 'done',
      position: 'top-right',
      timeout: 3000
    })
  }
}
const actions = {
  NOTIFY_SUCCESS ({ commit }, payload) {
    commit('NOTIFY_SUCCESS', payload)
  }
}

export default {
  namespaced: true,
  state,
  getters,
  mutations,
  actions
}
